home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
varia
/
silo.lha
/
silo
/
Event.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-08-08
|
763b
|
30 lines
/* $Author: ecsv38 $ $Date: 90/08/21 14:46:26 $ $Revision: 1.1 $ */
/* (c) S. Manoharan sam@lfcs.edinburgh.ac.uk */
#ifndef Event_H
#define Event_H
class Event; class Entity;
class Event {
private:
int event_id;
int event_type;
double etime;
Entity *bywho;
protected:
public:
Event(const int ev_type = 0);
virtual ~Event() { }
virtual int id() const { return event_id; }
virtual void type(const int n) { event_type = n; }
virtual int type() const { return event_type; }
virtual void eventTime(const double t) { etime = t; }
virtual double eventTime() const { return etime; }
virtual void scheduled_by(Entity *const who) { bywho = who; }
virtual Entity *scheduled_by() const { return bywho; }
};
#endif Event_H